package kgc.qy.service.impl;

import kgc.qy.mapper.PatientMapper;
import kgc.qy.pojo.Patient;
import kgc.qy.service.IPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
/*就诊信息管理*/
public class PatientServiceImpl implements IPatientService {
    @Autowired
    private PatientMapper patientMapper;

    @Override
    /*根据id和姓名查询就诊病人*/
    public List<Patient> selectAllPatient(Long id, String name) {
        //System.out.println(id+"\t"+name);
        List<Patient> patients = patientMapper.selectAllPatient(id, name);
        //System.out.println(patientMapper.selectByPrimaryKey(71L));
        System.out.println(patients);
        return patients;
    }
}
